.class public abstract Lcom/zuimeia/ui/base/AbsBaseFragment;
.super Landroid/support/v4/app/Fragment;
.source "AbsBaseFragment.java"


# instance fields
.field private mContentView:Landroid/widget/FrameLayout;

.field protected mHandler:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 14
    invoke-direct {p0}, Landroid/support/v4/app/Fragment;-><init>()V

    .line 16
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/base/AbsBaseFragment;->mHandler:Landroid/os/Handler;

    return-void
.end method


# virtual methods
.method protected final findViewById(I)Landroid/view/View;
    .registers 3
    .param p1, "id"    # I

    .prologue
    .line 49
    if-gez p1, :cond_4

    .line 50
    const/4 v0, 0x0

    .line 52
    :goto_3
    return-object v0

    :cond_4
    iget-object v0, p0, Lcom/zuimeia/ui/base/AbsBaseFragment;->mContentView:Landroid/widget/FrameLayout;

    invoke-virtual {v0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    goto :goto_3
.end method

.method protected getHandler()Landroid/os/Handler;
    .registers 2

    .prologue
    .line 62
    iget-object v0, p0, Lcom/zuimeia/ui/base/AbsBaseFragment;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method protected getScreenDisplayMetrics()Landroid/util/DisplayMetrics;
    .registers 3

    .prologue
    .line 56
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 57
    .local v0, "dm":Landroid/util/DisplayMetrics;
    invoke-virtual {p0}, Lcom/zuimeia/ui/base/AbsBaseFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/FragmentActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v1

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 58
    return-object v0
.end method

.method protected abstract initActions(Landroid/view/View;)V
.end method

.method protected abstract initData()V
.end method

.method protected abstract initViews(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .registers 2
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 21
    invoke-super {p0, p1}, Landroid/support/v4/app/Fragment;->onCreate(Landroid/os/Bundle;)V

    .line 22
    invoke-virtual {p0}, Lcom/zuimeia/ui/base/AbsBaseFragment;->initData()V

    .line 23
    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .registers 8
    .param p1, "inflater"    # Landroid/view/LayoutInflater;
    .param p2, "container"    # Landroid/view/ViewGroup;
    .param p3, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 29
    invoke-super {p0, p1, p2, p3}, Landroid/support/v4/app/Fragment;->onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    .line 31
    sget v2, Lcom/zuimeia/ui/R$layout;->lib_ui_abs_base_fragment:I

    const/4 v3, 0x0

    invoke-virtual {p1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 32
    .local v1, "viewWrapper":Landroid/view/ViewGroup;
    sget v2, Lcom/zuimeia/ui/R$id;->view_content:I

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/FrameLayout;

    iput-object v2, p0, Lcom/zuimeia/ui/base/AbsBaseFragment;->mContentView:Landroid/widget/FrameLayout;

    .line 34
    iget-object v2, p0, Lcom/zuimeia/ui/base/AbsBaseFragment;->mContentView:Landroid/widget/FrameLayout;

    invoke-virtual {p0, p1, v2, p3}, Lcom/zuimeia/ui/base/AbsBaseFragment;->initViews(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    move-result-object v0

    .line 35
    .local v0, "view":Landroid/view/View;
    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/base/AbsBaseFragment;->initActions(Landroid/view/View;)V

    .line 37
    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    if-nez v2, :cond_2a

    .line 38
    iget-object v2, p0, Lcom/zuimeia/ui/base/AbsBaseFragment;->mContentView:Landroid/widget/FrameLayout;

    invoke-virtual {v2, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 41
    :cond_2a
    return-object v1
.end method
